package com.yjy.fuyao.stu.client;


import com.yjy.fuyao.stu.client.fallback.OssFileClientFallback;
import com.yjy.fuyao.utils.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(value = "service-oss",fallback = OssFileClientFallback.class)
public interface OssFileClient {

    @PostMapping("/api/oss/file/upload")
    R upload(
            @RequestParam("file") MultipartFile file,
            @RequestParam("module") String module
    );
}
